﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true"
    CodeBehind="wFrmGrupo.aspx.cs" Inherits="EvolSoftWeb.GrupoForm" %>

<%@ Register Assembly="DevExpress.Web.ASPxGridView.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="server">
    <script type="text/javascript">
    // <![CDATA[
        function ShowMsj() {
            popupmsj.Show();
        }
        function ShowConfirmacion() {
            popupConfirmacion.Show();
        }
    // ]]> 
    </script>
    <div class="main-header" style="width: 100%;">
        <div class="main-titulo">
            Adm. Grupos</div>
    </div>
    <asp:UpdatePanel runat="server">
        <ContentTemplate>
            <table>
                <tr>
                    <td>
                        <dx:ASPxButton ID="btnNuevo" runat="server" Text="Nuevo" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                            CssPostfix="BlackGlass" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css"
                            OnClick="btnNuevo_Click">
                        </dx:ASPxButton>
                    </td>
                    <td>
                        <dx:ASPxButton ID="btnModificar" runat="server" Text="Modificar" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                            CssPostfix="BlackGlass" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css"
                            OnClick="btnModificar_Click">
                        </dx:ASPxButton>
                    </td>
                    <td>
                        <dx:ASPxButton ID="btnEliminar" runat="server" Text="Anular" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                            CssPostfix="BlackGlass" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css"
                            OnClick="btnEliminar_Click">
                        </dx:ASPxButton>
                    </td>
                    <td>
                        <dx:ASPxButton ID="btnSalir" runat="server" Text="Salir" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                            CssPostfix="BlackGlass" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css"
                            OnClick="btnSalir_Click">
                        </dx:ASPxButton>
                    </td>
                </tr>
            </table>
            <div class="content-form">
                <dx:ASPxGridView ID="gvListGrupo" runat="server" AutoGenerateColumns="False" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                    CssPostfix="BlackGlass" KeyFieldName="ID_GRUPO" Width="100%" OnPageIndexChanged="gvListGrupo_PageIndexChanged"
                    OnFocusedRowChanged="gvListGrupo_FocusedRowChanged" 
                    OnAfterPerformCallback="gvListGrupo_AfterPerformCallback">
                    <Columns>
                        <dx:GridViewDataTextColumn Caption="Id" FieldName="ID_GRUPO" VisibleIndex="0">
                            <PropertiesTextEdit>
                                
<ValidationSettings ErrorText="Valor inválido">
                                    
<RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                
</ValidationSettings>
                            
</PropertiesTextEdit>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="Nombre" FieldName="DES_NOMBRE" VisibleIndex="1">
                            <PropertiesTextEdit>
                                
<ValidationSettings ErrorText="Valor inválido">
                                    
<RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                
</ValidationSettings>
                            
</PropertiesTextEdit>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="Descripción" FieldName="DES_DESCRIPCION" VisibleIndex="2">
                            <PropertiesTextEdit>
                                
<ValidationSettings ErrorText="Valor inválido">
                                    
<RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                
</ValidationSettings>
                            
</PropertiesTextEdit>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="Estado" FieldName="IND_ESTADO" VisibleIndex="3">
                            <PropertiesTextEdit>
                                
<ValidationSettings ErrorText="Valor inválido">
                                    
<RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                
</ValidationSettings>
                            
</PropertiesTextEdit>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn FieldName="USR_CREACION" Visible="False" VisibleIndex="5">
                            <propertiestextedit>
<validationsettings errortext="Valor inválido">
<regularexpression errortext="Falló la validación de expresión Regular"></regularexpression>
</validationsettings>
</propertiestextedit>
                        </dx:GridViewDataTextColumn>
                    </Columns>
                    <SettingsBehavior AllowFocusedRow="True" />
                    <settingsbehavior allowfocusedrow="True" />
                    <SettingsPager PageSize="20">
                    </SettingsPager>
                    <Settings ShowFilterRow="True" />
                    <settings showfilterrow="True" />
                    <SettingsLoadingPanel Text="Cargando&amp;hellip;"></SettingsLoadingPanel>
                    <Images SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css">
                        <LoadingPanelOnStatusBar Url="~/App_Themes/BlackGlass/GridView/gvLoadingOnStatusBar.gif">
                        </LoadingPanelOnStatusBar>
                        <LoadingPanel Url="~/App_Themes/BlackGlass/GridView/Loading.gif">
                        </LoadingPanel>
                    </Images>
                    <ImagesFilterControl>
                        <LoadingPanel Url="~/App_Themes/BlackGlass/Editors/Loading.gif">
                        </LoadingPanel>
                    </ImagesFilterControl>
                    <Styles CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" 
                        CssPostfix="BlackGlass">
                        <Header ImageSpacing="5px" SortingImageSpacing="5px">
                        </Header>
                    </Styles>
                    <StylesEditors>
                        <calendarheader spacing="1px">
                        </calendarheader>
                        <ProgressBar Height="25px">
                        </ProgressBar>
                    </StylesEditors>
                </dx:ASPxGridView>
                <dx:ASPxPopupControl ID="popupmsj" runat="server" AllowDragging="True" ClientInstanceName="popupmsj"
                    CloseAction="None" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass"
                    EnableViewState="False" HeaderText="Mensaje" LoadingPanelText="Cargando&amp;hellip;"
                    Modal="True" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter"
                    SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Width="300px">
                    <LoadingPanelImage Url="~/App_Themes/BlackGlass/Web/Loading.gif">
                    </LoadingPanelImage>
                    <ContentStyle horizontalalign="Left" verticalalign="Top">
                        <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                    </ContentStyle>
                    <HeaderStyle>
                        <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" PaddingTop="4px" />
                        <Paddings PaddingLeft="15px" PaddingTop="3px" PaddingRight="6px" 
                        PaddingBottom="6px">
                        </Paddings>
                    </HeaderStyle>
                    <ContentCollection>
                        <dx:PopupControlContentControl ID="PopupControlContentControl5" runat="server" SupportsDisabledAttribute="True">
                            <br />
                            <dx:ASPxPanel ID="ASPxPanel2" runat="server" DefaultButton="btCreate">
                                <PanelCollection>
                                    <dx:PanelContent ID="Panelpopup" runat="server">
                                        <table align="center">
                                            <tr>
                                                <td colspan="2" align="center">
                                                    Seleccione un registro!
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2">
                                                    &nbsp;
                                                </td>
                                            </tr>
                                        </table>
                                        <table align="center">
                                            <tr>
                                                <td align="center" style="width: 215px">
                                                    <dx:ASPxButton ID="ASPxButton3" runat="server" Text="Aceptar" AutoPostBack="False"
                                                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                        <ClientSideEvents Click="function(s, e) {
	popupmsj.Hide();
}" />
                                                        <clientsideevents click="function(s, e) {
	popupmsj.Hide();
}" />
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </dx:PanelContent>
                                </PanelCollection>
                            </dx:ASPxPanel>
                        </dx:PopupControlContentControl>
                    </ContentCollection>
                </dx:ASPxPopupControl>
                <dx:ASPxPopupControl ID="popupConfirmacion" runat="server" AllowDragging="True" ClientInstanceName="popupConfirmacion"
                    CloseAction="None" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass"
                    EnableViewState="False" HeaderText="Mensaje" LoadingPanelText="Cargando&amp;hellip;"
                    Modal="True" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter"
                    SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Width="300px">
                    <LoadingPanelImage Url="~/App_Themes/BlackGlass/Web/Loading.gif">
                    </LoadingPanelImage>
                    <ContentStyle horizontalalign="Left" verticalalign="Top">
                        <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                    </ContentStyle>
                    <HeaderStyle>
                        <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" PaddingTop="4px" />
                        <Paddings PaddingLeft="15px" PaddingTop="3px" PaddingRight="6px" 
                        PaddingBottom="6px">
                        </Paddings>
                    </HeaderStyle>
                    <ContentCollection>
                        <dx:PopupControlContentControl ID="PopupControlContentControl1" runat="server" SupportsDisabledAttribute="True">
                            <br />
                            <dx:ASPxPanel ID="ASPxPanel1" runat="server" DefaultButton="btCreate">
                                <PanelCollection>
                                    <dx:PanelContent ID="PanelContent1" runat="server">
                                        <table align="center">
                                            <tr>
                                                <td colspan="2">
                                                    &nbsp;<dx:ASPxLabel ID="lblMensaje" runat="server">
                                                    </dx:ASPxLabel>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2">
                                                    &nbsp;
                                                </td>
                                            </tr>
                                        </table>
                                        <table align="center">
                                            <tr>
                                                <td align="center">
                                                    <dx:ASPxButton ID="btnAceptar" runat="server" Text="Aceptar" AutoPostBack="False"
                                                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" OnClick="btnAceptar_Click">
                                                        <ClientSideEvents Click="function(s, e) {
	popupConfirmacion.Hide();
}" />
                                                        <clientsideevents click="function(s, e) {
	popupConfirmacion.Hide();
}" />
                                                    </dx:ASPxButton>
                                                </td>
                                                <td>
                                                    <dx:ASPxButton ID="ASPxButton5" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                        Text="Cancelar" AutoPostBack="False">
                                                        <ClientSideEvents Click="function(s, e) {
	popupConfirmacion.Hide();
}" />
                                                        <clientsideevents click="function(s, e) {
	popupConfirmacion.Hide();
}" />
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </dx:PanelContent>
                                </PanelCollection>
                            </dx:ASPxPanel>
                        </dx:PopupControlContentControl>
                    </ContentCollection>
                </dx:ASPxPopupControl>
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
